package com.game.business.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.game.common.annotation.Excel;
import com.game.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 余额明细对象 t_wallet
 *
 * @author ruoyi
 * @date 2025-10-11
 */
@Data
@TableName(value = "t_wallet")
@EqualsAndHashCode(callSuper = true)
public class TWallet extends BaseEntity{
private static final long serialVersionUID = 1L;

/** $column.columnComment */
@TableId(type = IdType.ASSIGN_ID)
private String id;
/** "人员id" */
//@Excel(name = "人员id")
private String userId;

 // 用户昵称
 @TableField(exist = false)
 private String nickName;

// 1 创建订单 2  保证金扣除 3 保正金返还   4 订单结束分账  5 平台收取的服务费   6 担保人抽成   7 仲裁费用
// 9 强制仲裁费用    10 充值记录 11 提现记录
@Excel(name = "类型", dictType = "wallet_type")
 private String type;

/** "金额" */
@Excel(name = "金额")
private BigDecimal money;
/** "订单编号" */
//@Excel(name = "订单编号")
private String businessId;

 @Excel(name = "备注")
 private String remark;
 /** 创建时间 */
 @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 @TableField(value = "create_time", fill = FieldFill.INSERT) // 新增执行
 private Date createTime;


 }
